<?php
try{
    include '../ini.php';
    include '../classes/xl_banner.php';
    $dt_xl_banner=new xl_bannner;
    $list_banner=$dt_xl_banner->read_list();
    $dt_smarty->assign('list_banner',$list_banner);
    $contenForLayout=$dt_smarty->fetch('banner/list_banner.tpl');
    $dt_smarty->assign('contenForLayout',$contenForLayout);
    $dt_smarty->assign('titleForLayout','Banner');
    $dt_smarty->display('layout/defaults.tpl');
    $dbh=NULL;
}catch(Exception $e){
    $dbh=NULL;
    $_SESSION['msg']=$e->getMessage();
}